﻿{% for tweet in tweets %}
<li id="status_{{ tweet.id }}">
    <span class="avatar">
        <a href="/{{ tweet.user.screen_name }}" title="{{ tweet.user.screen_name }}"><img src="{{ tweet.user.profile_image_url }}" alt="{{ tweet.user.screen_name }}" /></a>
    </span>
    <span class="status">
        <b><a href="/{{ tweet.user.screen_name }}" title="{{ tweet.user.screen_name }}">{{ tweet.user.screen_name }}</a></b>{{ tweet.text }}
        <span class="meta">
            <a href="/{{ tweet.user.screen_name }}/status/{{ tweet.id }}" time="{{ tweet.created_at }}" class="entry-date"></a>
            <span>
            	via {{ tweet.source }} 
                {% ifnotequal tweet.in_reply_to_screen_name null %} in reply to 
                <a href="/{{ tweet.in_reply_to_screen_name }}/status/{{ tweet.in_reply_to_status_id }}" title="{{ tweet.in_reply_to_screen_name }}">{{ tweet.in_reply_to_screen_name }}</a>                    	
            	{% endifnotequal %}
            </span>
        </span>
    </span>
    <span class="action">
    	{% ifnotequal tweet.user.screen_name user.screen_name %}
        <a class="reply" href="/?status=@{{ tweet.user.screen_name }}&in_reply_to_status_id={{ tweet.id }}&in_reply_to={{ tweet.user.screen_name }}" title="Reply">Reply</a>
        <a class="retweet" href="#" title="Retweet">Retweet</a>
        <a class="new_retweet" href="#" title="New Retweet">New Retweet</a>
        <a class="{% ifequal tweet.favorited true %}star{% else %}favorite{% endifequal %}" href="#" title="Favorite">Favorite</a>
        {% else %}
        <a class="delete" href="#" title="Delete">Delete</a>
        {% endifnotequal %}
    </span>
</li>
{% endfor %}
        